package cn.net.cfss.fgbp.api.console.constant;

import cn.net.cfss.fgbp.base.constant.BaseEnum;

import java.util.HashMap;
import java.util.Map;

/***
 *
 */
public enum ELogTypeEnum implements BaseEnum<ELogTypeEnum, String> {




	PACKET("1", "APP接口报文"),
	THIRD("2", "第三方接口报文"),
	PORTAL("3", "门户接口报文"),
	MOVE("4", "移动web接口报文"),;
	private String value;
	private String displayName;


	ELogTypeEnum(String value, String displayName) {
		this.value = value;
		this.displayName = displayName;

	}
	
	private static Map<String,ELogTypeEnum> enumMap = new HashMap<String,ELogTypeEnum>();
	static {
		for(ELogTypeEnum en : ELogTypeEnum.values()){
			enumMap.put(en.getValue(), en);
		}
	}

	@Override
	public String getValue() {
		return this.value;
	}

	@Override
	public String getDisplayName() {
		return this.displayName;
	}

	public static ELogTypeEnum getEnum(String value){
		return enumMap.get(value);
	}

}
